import os

def rename_files(dir_path, old_name, new_name):
    file_list = os.listdir(dir_path)
    print(file_list)
    for file_name in file_list:
        print(file_name)
        if file_name.startswith(old_name):
            # new_file_name = file_name.replace(old_name, new_name)
            # 1-305-15_23605224权威
            new_file_name = file_name[9:]
            # print(new_file_name)
            # print(1)
            new_file_name = new_file_name.replace('+', '')
            new_file_name = new_file_name.replace(' ', '')
            new_file_name = new_file_name.replace('-', '')

            os.rename(os.path.join(dir_path, file_name), os.path.join(dir_path, new_file_name))

# 示例调用
rename_files("path", "1-305", "new_name")